import Vue from 'vue'
import Router from 'vue-router'
import mainContent from '@/views/mainContent'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'mainContent',
      redirect: '/ruanjian', //  重定向
      component: mainContent,
      children: [
        // 软件资产管理
        {
          path: '/ruanjian',
          name: 'ruanjian',
          title: '软件资产管理',
          meta: {
            oneName: 'ruanjian'
          },
          component: () => import('@/views/ruanjian/ruanjian')
        },
      ]
    }
  ]
})
